import request from '@/utils/request'
/**
 * 获取资源列表
 * @returns 
 */
export const getResourceList = (params: any) => {
  return request({
    url: '/anon/resource/list',
    method: 'get',
    params
  })
}
/**
 * 上传资源
 * @param data 
 * @returns 
 */
export const uploadResource = (data: any) => {
  return request({
    url: '/user/resource',
    method: 'post',
    data
  })
}
/**
 * 获取详情信息
 * @param params 
 * @returns 
 */
export const getResourceDetail = (params: any) => {
  return request({
    url: '/anon/resource',
    method: 'get',
    params
  })
}